package org.domain.autotech.session;

import java.util.Date;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Begin;
import org.jboss.seam.annotations.web.RequestParameter;
import org.jboss.seam.framework.EntityHome;

import org.domain.autotech.entity.OS;

@Name("oSHome")
public class OSHome extends EntityHome<OS>
{
    @RequestParameter Long oSId;

    @Override
    public Object getId()
    {
        if (oSId == null)
        {
            return super.getId();
        }
        else
        {
            return oSId;
        }
    }

    @Override @Begin
    public void create() {
    	getInstance().setDataOs(new Date());
        super.create();
    }

    @Override
    public String update() {
    	// TODO Auto-generated method stub
    	return super.update();
    }
}
